package com.example.mapper;

import com.example.entity.Menu;
import com.example.entity.Worker;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MenuMapper {
    @Select("select * from Menu where menu_name=#{M_name} ")
    Menu findByMenuMname(String M_name);
    void updata(Menu menu);
    @Insert("insert into menu(menu_name, menu_Image, menu_price,category_id) value(#{menuName},#{menuImage},#{menuPrice},#{categoryId})")
    void insert(Menu menu);
    void delete(List<Integer> id);

    List<Menu> selectByPage(String menuname, String menuprice);
}
